﻿using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;

using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;
using Integrow.Webpart.NetworkShareList;

namespace Integrow.Webpart.NetworkShareList
{
    [Guid("f4a6018f-c115-458f-a141-1743afd8a425")]
    public class NetworkShareFrame : System.Web.UI.WebControls.WebParts.WebPart
    {
        public NetworkShareFrame()
        {
            this.ExportMode = WebPartExportMode.All;
        }

        protected override void RenderContents(HtmlTextWriter writer)
        {

            writer.Write("<iframe title=\"Page Viewer Web Part\" id=\"fileShareFrame\" name=\"fileShareFrame\" frameBorder=\"0\" width=\"100%\" height=\"100%\" style=\"behavior:url('#default#httpFolder')\">"
                + "<div class=\"UserGeneric\">The current browser does not support Web pages that contain the IFRAME element. To use this Web Part, you must use a browser that supports this element, such as Internet Explorer version 5 or later.</div>"
                + "</iframe>");
        }
    }
}
